package com.suneee.trades.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.List;

import com.suneee.orm.annotation.Column;
import com.suneee.orm.annotation.Entity;
import com.suneee.orm.annotation.GeneratedValue;
import com.suneee.orm.annotation.GenerationType;
import com.suneee.orm.annotation.Id;
import com.suneee.orm.annotation.Table;
import com.suneee.orm.annotation.Transient;
import com.suneee.trades.bean.TradesOrderMapDTO;
import com.taobao.api.domain.Trade;

@Entity
@Table(name = "t_trades_info")
public class TradesInfo implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6559699378013230156L;

	@Id
	@GeneratedValue(strategy=GenerationType.TABLE)
	@Column(name = "tid")
	private String tid;
	
	@Column(name = "shop_id")
	private Integer shopId;
	
	@Column(name = "enterprise_code")
	private String enterpriseCode;
	
	@Column(name = "seller_nick")
	private String sellerNick;
	
	@Column(name = "buyer_nick")
	private String buyerNick;
	
	@Column(name = "title")
	private String title;
	
	@Column(name = "type")
	private String type;
	
	@Column(name = "pic_path")
	private String picPath;
	
	@Column(name = "trade_from")
	private String tradeFrom;
	
	@Column(name = "shipping_type")
	private String shippingType;
	
	@Column(name = "receiver_name")
	private String receiverName;
	
	@Column(name = "receiver_country")
	private String receiverCountry;
	
	@Column(name = "receiver_state")
	private String receiverState;
	
	@Column(name = "receiver_city")
	private String receiverCity;
	
	@Column(name = "receiver_district")
	private String receiverDistrict;
	
	@Column(name = "receiver_town")
	private String receiverTown;
	
	@Column(name = "receiver_address")
	private String receiverAddress;
	
	@Column(name = "receiver_zip")
	private String receiverZip;
	
	@Column(name = "receiver_mobile")
	private String receiverMobile;
	
	@Column(name = "receiver_phone")
	private String receiverPhone;
	
	@Column(name = "total_fee")
	private BigDecimal totalFee;
	
	@Column(name = "post_fee")
	private BigDecimal postFee;
	
	@Column(name = "received_payment")
	private BigDecimal receivedPayment;
	
	@Column(name = "payment")
	private BigDecimal payment;
	
	@Column(name = "has_post_fee")
	private boolean hasPostFee;
	
	@Column(name = "discount_fee")
	private BigDecimal discountFee;
	
	@Column(name = "adjust_fee")
	private BigDecimal adjustFee;
	
	@Column(name = "invoice_name")
	private String invoiceName;
	
	@Column(name = "invoice_type")
	private String invoiceType;
	
	@Column(name = "invoice_kind")
	private String invoiceKind;
	
	@Column(name = "created")
	private Timestamp created;
	
	@Column(name = "pay_time")
	private Timestamp payTime;
	
	@Column(name = "modified")
	private Timestamp modified;
	
	@Column(name = "end_time")
	private Timestamp endTime;
	
	@Column(name = "buyer_message")
	private String buyerMessage;
	
	@Column(name = "buyer_memo")
	private String buyerMemo;
	
	@Column(name = "buyer_flag")
	private Integer buyerFlag;
	
	@Column(name = "seller_memo")
	private String sellerMemo;
	
	@Column(name = "seller_flag")
	private Integer sellerFlag;
	
	@Column(name = "timeout_action_time")
	private Timestamp timeoutActionTime;
	
	@Column(name = "status")
	private String status;
	
	@Column(name = "est_con_time")
	private String estConTime;
	
	@Column(name = "is_locked")
	private boolean is_Locked;
	
	@Column(name = "locked")
	private Integer locked;
	
	// @Column(name = "is_arrange")
	// private boolean isArrange;
	@Column(name = "remark")
	private String remark;
	
	@Column(name = "offline_status")
	private String offlineStatus;
	
	@Column(name = "merge_status")
	private String mergeStatus;
	
	@Column(name = "merge_tids")
	private String mergeTids;
	
	@Column(name = "trade_type")
	private String tradeType;
	
	@Column(name = "split_status")
	private String splitStatus;
	
	@Column(name = "company_code")
	private String companyCode;
	
	@Column(name = "is_refund")
	private boolean isRefund;
	
	@Column(name = "is_change_goods")
	private boolean isChangeGoods;
	
	@Column(name = "is_refund_goods")
	private boolean isRefundGoods;
	
	@Column(name = "audit_time")
	private Timestamp auditTime;
	
	
	@Column(name = "syn_status")
	private Integer synStatus;
	
	@Column(name = "syn_time")
	private Timestamp synTime;
	
	@Transient
	private Timestamp shoppTime;

	@Transient
	private List<TradesOrder> tradesOrderList;
	
	@Transient
	private  List<TradesOrderMapDTO> tradesOrderMap;
	
	@Transient
	private String channelCode;
	
	@Transient
	private String channelName;
	
	@Transient
	private String companyName;
	
	@Transient
	private List<PromotionDetails> promotionList;
	
	@Transient
	private List<OrderLog> orderLogList;
	
	@Transient
	private String shopName;
	
	@Transient
	private String tradesStatus;

	// 属性字段
	@Transient
	private Trade fullTrade; // 淘宝返回的trade信息
	
	@Transient
	private String name;
	
	@Transient
	private Boolean isSuccess;

	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTid() {
		return tid;
	}

	public void setTid(String tid) {
		this.tid = tid;
	}

	public Integer getShopId() {
		return shopId;
	}

	public void setShopId(Integer shopId) {
		this.shopId = shopId;
	}

	public String getEnterpriseCode() {
		return enterpriseCode;
	}

	public void setEnterpriseCode(String enterpriseCode) {
		this.enterpriseCode = enterpriseCode;
	}

	public String getSellerNick() {
		return sellerNick;
	}

	public void setSellerNick(String sellerNick) {
		this.sellerNick = sellerNick;
	}

	public String getBuyerNick() {
		return buyerNick;
	}

	public void setBuyerNick(String buyerNick) {
		this.buyerNick = buyerNick;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getPicPath() {
		return picPath;
	}

	public void setPicPath(String picPath) {
		this.picPath = picPath;
	}

	public String getTradeFrom() {
		return tradeFrom;
	}

	public void setTradeFrom(String tradeFrom) {
		this.tradeFrom = tradeFrom;
	}

	public String getShippingType() {
		return shippingType;
	}

	public void setShippingType(String shippingType) {
		this.shippingType = shippingType;
	}

	public String getReceiverName() {
		return receiverName;
	}

	public void setReceiverName(String receiverName) {
		this.receiverName = receiverName;
	}

	public String getReceiverCountry() {
		return receiverCountry;
	}

	public void setReceiverCountry(String receiverCountry) {
		this.receiverCountry = receiverCountry;
	}

	public String getReceiverState() {
		return receiverState;
	}

	public void setReceiverState(String receiverState) {
		this.receiverState = receiverState;
	}

	public String getReceiverCity() {
		return receiverCity;
	}

	public void setReceiverCity(String receiverCity) {
		this.receiverCity = receiverCity;
	}

	public String getReceiverDistrict() {
		return receiverDistrict;
	}

	public void setReceiverDistrict(String receiverDistrict) {
		this.receiverDistrict = receiverDistrict;
	}

	public String getReceiverTown() {
		return receiverTown;
	}

	public void setReceiverTown(String receiverTown) {
		this.receiverTown = receiverTown;
	}

	public String getReceiverAddress() {
		return receiverAddress;
	}

	public void setReceiverAddress(String receiverAddress) {
		this.receiverAddress = receiverAddress;
	}

	public String getReceiverZip() {
		return receiverZip;
	}

	public void setReceiverZip(String receiverZip) {
		this.receiverZip = receiverZip;
	}

	public String getReceiverMobile() {
		return receiverMobile;
	}

	public void setReceiverMobile(String receiverMobile) {
		this.receiverMobile = receiverMobile;
	}

	public String getReceiverPhone() {
		return receiverPhone;
	}

	public void setReceiverPhone(String receiverPhone) {
		this.receiverPhone = receiverPhone;
	}

	public boolean isHasPostFee() {
		return hasPostFee;
	}

	public void setHasPostFee(boolean hasPostFee) {
		this.hasPostFee = hasPostFee;
	}

	public String getInvoiceName() {
		return invoiceName;
	}

	public void setInvoiceName(String invoiceName) {
		this.invoiceName = invoiceName;
	}

	public String getInvoiceType() {
		return invoiceType;
	}

	public void setInvoiceType(String invoiceType) {
		this.invoiceType = invoiceType;
	}

	public String getInvoiceKind() {
		return invoiceKind;
	}

	public void setInvoiceKind(String invoiceKind) {
		this.invoiceKind = invoiceKind;
	}

	public String getBuyerMessage() {
		return buyerMessage;
	}

	public void setBuyerMessage(String buyerMessage) {
		this.buyerMessage = buyerMessage;
	}

	public String getBuyerMemo() {
		return buyerMemo;
	}

	public void setBuyerMemo(String buyerMemo) {
		this.buyerMemo = buyerMemo;
	}

	public Integer getBuyerFlag() {
		return buyerFlag;
	}

	public void setBuyerFlag(Integer buyerFlag) {
		this.buyerFlag = buyerFlag;
	}

	public String getSellerMemo() {
		return sellerMemo;
	}

	public void setSellerMemo(String sellerMemo) {
		this.sellerMemo = sellerMemo;
	}

	public Integer getSellerFlag() {
		return sellerFlag;
	}

	public void setSellerFlag(Integer sellerFlag) {
		this.sellerFlag = sellerFlag;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getEstConTime() {
		return estConTime;
	}

	public void setEstConTime(String estConTime) {
		this.estConTime = estConTime;
	}

	public boolean isIs_Locked() {
		return is_Locked;
	}

	public void setIs_Locked(boolean is_Locked) {
		this.is_Locked = is_Locked;
	}

	public Integer getLocked() {
		return locked;
	}

	public void setLocked(Integer locked) {
		this.locked = locked;
	}

	// public boolean isArrange() {
	// return isArrange;
	// }
	// public void setArrange(boolean isArrange) {
	// this.isArrange = isArrange;
	// }
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getOfflineStatus() {
		return offlineStatus;
	}

	public void setOfflineStatus(String offlineStatus) {
		this.offlineStatus = offlineStatus;
	}

	public String getMergeStatus() {
		return mergeStatus;
	}

	public void setMergeStatus(String mergeStatus) {
		this.mergeStatus = mergeStatus;
	}

	public String getMergeTids() {
		return mergeTids;
	}

	public void setMergeTids(String mergeTids) {
		this.mergeTids = mergeTids;
	}

	public String getTradeType() {
		return tradeType;
	}

	public void setTradeType(String tradeType) {
		this.tradeType = tradeType;
	}

	public String getSplitStatus() {
		return splitStatus;
	}

	public void setSplitStatus(String splitStatus) {
		this.splitStatus = splitStatus;
	}

	public String getCompanyCode() {
		return companyCode;
	}

	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}

	public boolean isRefund() {
		return isRefund;
	}

	public void setRefund(boolean isRefund) {
		this.isRefund = isRefund;
	}

	public boolean isChangeGoods() {
		return isChangeGoods;
	}

	public void setChangeGoods(boolean isChangeGoods) {
		this.isChangeGoods = isChangeGoods;
	}

	public boolean isRefundGoods() {
		return isRefundGoods;
	}

	public void setRefundGoods(boolean isRefundGoods) {
		this.isRefundGoods = isRefundGoods;
	}

	public BigDecimal getTotalFee() {
		return totalFee;
	}

	public void setTotalFee(BigDecimal totalFee) {
		this.totalFee = totalFee;
	}

	public BigDecimal getPostFee() {
		return postFee;
	}

	public void setPostFee(BigDecimal postFee) {
		this.postFee = postFee;
	}

	public BigDecimal getReceivedPayment() {
		return receivedPayment;
	}

	public void setReceivedPayment(BigDecimal receivedPayment) {
		this.receivedPayment = receivedPayment;
	}

	public BigDecimal getPayment() {
		return payment;
	}

	public void setPayment(BigDecimal payment) {
		this.payment = payment;
	}

	public BigDecimal getDiscountFee() {
		return discountFee;
	}

	public void setDiscountFee(BigDecimal discountFee) {
		this.discountFee = discountFee;
	}

	public BigDecimal getAdjustFee() {
		return adjustFee;
	}

	public void setAdjustFee(BigDecimal adjustFee) {
		this.adjustFee = adjustFee;
	}

	public Trade getFullTrade() {
		return fullTrade;
	}

	public void setFullTrade(Trade fullTrade) {
		this.fullTrade = fullTrade;
	}

	public List<TradesOrder> getTradesOrderList() {
		return tradesOrderList;
	}

	public void setTradesOrderList(List<TradesOrder> tradesOrderList) {
		this.tradesOrderList = tradesOrderList;
	}

	public String getChannelCode() {
		return channelCode;
	}

	public void setChannelCode(String channelCode) {
		this.channelCode = channelCode;
	}

	public List<PromotionDetails> getPromotionList() {
		return promotionList;
	}

	public void setPromotionList(List<PromotionDetails> promotionList) {
		this.promotionList = promotionList;
	}

	public List<OrderLog> getOrderLogList() {
		return orderLogList;
	}

	public void setOrderLogList(List<OrderLog> orderLogList) {
		this.orderLogList = orderLogList;
	}

	public String getShopName() {
		return shopName;
	}

	public void setShopName(String shopName) {
		this.shopName = shopName;
	}
	public List<TradesOrderMapDTO> getTradesOrderMap() {
		return tradesOrderMap;
	}

	public void setTradesOrderMap(List<TradesOrderMapDTO> tradesOrderMap) {
		this.tradesOrderMap = tradesOrderMap;
	}

	public String getTradesStatus() {
		return tradesStatus;
	}

	public void setTradesStatus(String tradesStatus) {
		this.tradesStatus = tradesStatus;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public Timestamp getCreated() {
		return created;
	}

	public void setCreated(Timestamp created) {
		this.created = created;
	}

	public Timestamp getPayTime() {
		return payTime;
	}

	public void setPayTime(Timestamp payTime) {
		this.payTime = payTime;
	}

	public Timestamp getModified() {
		return modified;
	}

	public void setModified(Timestamp modified) {
		this.modified = modified;
	}

	public Timestamp getEndTime() {
		return endTime;
	}

	public void setEndTime(Timestamp endTime) {
		this.endTime = endTime;
	}

	public Timestamp getTimeoutActionTime() {
		return timeoutActionTime;
	}

	public void setTimeoutActionTime(Timestamp timeoutActionTime) {
		this.timeoutActionTime = timeoutActionTime;
	}

	public Timestamp getAuditTime() {
		return auditTime;
	}

	public void setAuditTime(Timestamp auditTime) {
		this.auditTime = auditTime;
	}

	public Timestamp getShoppTime() {
		return shoppTime;
	}

	public void setShoppTime(Timestamp shoppTime) {
		this.shoppTime = shoppTime;
	}

	public Boolean getIsSuccess() {
		return isSuccess;
	}

	public void setIsSuccess(Boolean isSuccess) {
		this.isSuccess = isSuccess;
	}

	public Integer getSynStatus() {
		return synStatus;
	}

	public void setSynStatus(Integer synStatus) {
		this.synStatus = synStatus;
	}

	public Timestamp getSynTime() {
		return synTime;
	}

	public void setSynTime(Timestamp synTime) {
		this.synTime = synTime;
	}

	public String getChannelName() {
		return channelName;
	}

	public void setChannelName(String channelName) {
		this.channelName = channelName;
	}
	
}
